home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / README.ATAPI < prev    next >
Encoding:
Text File  |  2000-06-04  |  11.2 KB  |  285 lines

  1. This was taken out of mails from From: Dave Cohen <dcohen@richmond.infi.net>
  2. and From: Gadi Oxman <gadio@netvision.net.il>
  3. (slightly modified marked ***JS *** except typo corrects)
  4.  
  5. It is only valid for Linux !
  6.  
  7. As all actual Linux versions support ATAPI support for cdrecord,
  8. I removed the patch section. If you are running a Linux version
  9. that does not support ATAPI SCSI command transport, please upgrade.
  10.  
  11. The basic driver design in Solaris would also allow to use ATAPI
  12. drives but unfortunately, Sun made a mistake in the mid-level design.
  13. If you want to use ATAPI drives with Solaris, ask Sun why they don't
  14. support SCSI passthrough to IDE although they are using a common driver
  15. concept.
  16.  
  17. Please use cdrecord-1.6 final or later (if available), it includes the
  18. modifications needed for ATAPI drives and is still working with other 
  19. SCSI drives. Older revisions of cdrecord do not support ATAPI drives.
  20.  
  21. If you are using Linux Kernel version prior to 2.1.73 or prior to
  22. 2.0.35, please upgrade before you try to compile and use cdrecord.
  23.  
  24. In any case, you need to configure a kernel with ATAPI/SCSI hostadapter
  25. emulation. Read carefully the following instructions:
  26.  
  27. In any case, you need to disable generic IDE/ATAPI CDROM support in 
  28. order to make ATAPI SCSI emulation working.
  29.  
  30. Many people ask why I use ATAPI-SCSI emulation.
  31.  
  32.     The use of the naming convention "ATAPI-SCSI emulation" is a
  33.     little bit misleading. It should rather be called:
  34.         "SCSI host adapter emulation"
  35.  
  36.     The ATAPI standard describes method of sending SCSI commands over IDE
  37.     with some small limitations to the "real" SCSI standard.
  38.     For this reason ATAPI-SCSI emulation is the native method of
  39.     supporting ATAPI devices.
  40.  
  41. If you have problems to talk to the device when it is jumpered as "slave"
  42. try to use it  as "master". If you connect a hard disk to the same IDE
  43. cable as the CD writer or if you try to read/write data from another drive
  44. that is connected to the same IDE cable as the CD writer you may get
  45. problems too.
  46.  
  47. NOTICE:
  48.  
  49. With the newer 2.1.x or 2.2.x kernels it seems to be possible to run 
  50. SCSI/ATAPI hostadapter emulation and generic IDE at the same time by 
  51. selectively telling the kernel what to use for which drive.  However,
  52. this would not be needed if the Linux SCSI CD-ROM driver would be more 
  53. up to date and supports standard conforming drives.
  54.  
  55. J÷rg Schilling <schilling@fokus.gmd.de>
  56.  
  57. --------------------------------------------------
  58. Here is a hint from Alan Brown <alanb@manawatu.gen.nz>:
  59.  
  60. To allow ATAPI cd and ide-scsi support on the same machine, add 
  61. `hd<x>=ide-scsi` to the lilo.conf append entry, or use 
  62. `hd<x>=ide-scsi` at the bootup lilo prompt. 
  63.  
  64. I have my HP-7200 RW drive as the primary drive on the second IDE 
  65. bus, so the statement used is "hdc=ide-scsi" 
  66.  
  67. --------------------------------------------------
  68.  
  69. Hope that the following  is helpful to you.
  70.  
  71. I recently purchased a HP-7110i CD-RW, which is the U.S. only version of
  72. what you have. The HP 7100 and 7110  CD rewritables use the ATAPI
  73. standard. Originally, the drives were not supported under Linux (due to
  74. some inconsistencies with SCSI translations between the kernel and the
  75. CD), but that problem has just recently been fixed. There are some kernel
  76. and cdrecord patches that have been made to support this device that have
  77. yet to be officially incorporated into cdwrite and the kernel. In order to
  78. get your drive supported under Linux, you will have to do the following:
  79.  
  80. 1. Get the proper version of cdrecord.
  81.  
  82. As of this writing, I am just getting ready to test Joerg's new cdrecord.
  83. I am currently operational on cdrecord-1.5, so I know that works, and I
  84. have attached patches for that version. 
  85.  
  86. If you are in a hurry, you can download ver. 1.5, apply patches, and
  87. rock-n-roll. You may want to wait, though.  Up to you ;). The version with
  88. ATAPI support is cdrecord-1.6alpha5. I'm not sure if the current kernel
  89. patches are valid for this version, but i'll know soon enough.
  90. **** They are valid **** JS
  91.  
  92. BTW, the new version of xcdroast now supports cdrecord - this version
  93. is in beta testing, too (currently uses cdrecord-1.5 but cdrecord-1.6a5
  94. should work with the actual xcdroast too).  
  95.  
  96. 2. Upgrade to kernel version 2.0.31
  97.  
  98. IDE/SCSI translation was first added in this kernel. Because your CD-RW is
  99. an ATAPI device, it will support SCSI command sets.  The translation
  100. allows you to map the device as a SCSI generic device. This will allow
  101. cdrecord to recognize it as a SCSI device.
  102. **** 2.0.31 still needs patches, get 2.0.35 or later **** JS
  103.  
  104. 3. Get the patches and apply them
  105.  
  106. Attached find kernel patches for kernel sources ide.h and ide-scsi.c, and
  107. cdrecord source scsi_cdr.c (version 1.5 only). 
  108. **** Get cdrecord-1.6 or later **** JS
  109.  
  110. 3. Recompile kernel with SCSI emulation support
  111.  
  112. If you do a "make menuconfig" or "make xconfig", select SCSI emulation
  113. under the category "Floppy, IDE, and other block devices".
  114.  
  115. WARNING:
  116. Do not install SCSI support as a module - there is a bug in the makefile
  117. structure that will cause the compile to fail.  Compile directly into the
  118. kernel.   
  119.  
  120. 4. WARNING: Disable generic IDE/ATAPI support        *** JS ***
  121.  
  122. If you don't do this, the SCSI emulation will not work  *** JS ***
  123.  
  124. 5. This is important too:
  125. You also need to enable SCSI and SCSI generic support   *** JS ***
  126.  
  127. 6. Make sure that /dev/sg* exists.
  128. If thet are missing, create them.
  129.  
  130. Dave Cohen
  131. dcohen@richmond.infi.net 
  132. (Patch instructions below)
  133.  
  134. -----------------------------------------------------------------
  135. From: Danilo Fiorenzano <shade@juliet.gppsd.ab.ca>
  136.  
  137. Anyway, here's what I did, using kernel version 2.0.33  I believe this
  138. is the proper way to get an HP-7100i to work (and as far as I can tell,
  139. any other IDE CD-writer unit):
  140.  
  141. 1) patch the kernel as described by README.ATAPI
  142.  
  143. 2) save your current kernel config to an alternate file, then run
  144.    "make mrproper"
  145.  
  146. 3) run 'make menuconfig' or 'make xconfig', then choose "load config
  147.    from alternate file" to restore the original configuration
  148.  
  149. 4) In "Floppy, IDE and other block devices", disable "IDE/ATAPI CD-ROM
  150.    support" and enable instead "scsi emulation"
  151.  
  152. 5) in "SCSI support" enable "SCSI support", "SCSI CD-ROM support" and
  153.    "SCSI generic support", everything directly in the kernel.
  154.  
  155. 6) compile, install kernel/modules, reboot.  Now, if everything went
  156.    fine, your CDROM units should show up with a message like:
  157.  "hdb: HP CD-Writer+ 7100, ATAPI CDROM drive - enabling SCSI emulation"
  158.  
  159. 7) run "cdrecord -scanbus" to make sure cdrecord can see the unit and
  160.    talk to it.  The end.
  161.  
  162. Don't forget that now -all- of your CD drives are seen as -SCSI- units
  163. by all programs (/dev/scd0 etc.), so you might want to relink
  164. /dev/cdrom to the proper scd<n> in order to get xcdplay or whatever to
  165. work again.
  166.  
  167.  
  168. -------------------------------------------------------------------------------
  169. NOTE: 
  170.  
  171. 1)    Actual cdrecord releases support ATAPI
  172.  
  173. 2)    Linux 2.0.35 or Linux 2.1.73 or later include ATAPI support
  174. -------------------------------------------------------------------------------
  175. From whampton@staffnet.com Fri Jan 14 05:21:34 2000
  176. From: "W. Wade, Hampton IV" <whampton@staffnet.com>
  177.  
  178. You may wish to include/append these notes to your ATAPI notes....
  179.  
  180. I have my 4X Acer CD-R/RW ATAPI drive working with Linux.   My platform
  181. is
  182. RedHat 6.1 with kernel 2.2.14.  My first ATAPI CD device is a DVD with
  183. the second
  184. the CD-R.  I made the following changes:
  185.  
  186. Steps:
  187.  
  188. 1.  Identify which device is the CD-R -- in my case the fourth ATAPI
  189. device, /dev/hdd.
  190.  
  191. 2.  Compile the kernel to include ATAPI CDROM and SCSI emulation:
  192.  
  193.      Under the block devices menu:
  194.                 Y or M     Include IDE/ATAPI CDROM support
  195.                 Y or M     SCSI emulation
  196.  
  197. 3.  Build and install the upgraded kernel.
  198.  
  199. 4.  If you selected modules, add them to the /etc/conf.modules file.
  200.  
  201. 5.  In the /etc/lilo.conf file add an append line for ide-scsi, in my
  202. case:
  203.         append = "hdc=ide-scsi hdd=ide-scsi"
  204.  
  205. 6.  Reboot to the new kernel and make sure the ide-scsi module is loaded
  206.  
  207.         /sbin/lsmod | grep ide-scsi
  208.  
  209. 7.  Make a link from the proper SCSI device to a symbolic, e.g.,
  210. /dev/cdrom:
  211.       In my case the DVD is the first CD, hence appears as /dev/scd0 to
  212. scd7
  213.       (cat /proc/scsi/scsi to get a full list of devices -- the first
  214. CD-ROM will
  215.       appear as scd0, etc.)  With the current ATAPI-SCSI module, each CD
  216.  
  217.       device appears as 8 SCSI devices (different logical units).  If
  218. you have
  219.       two devices, like I do, you may have to make a node for the second
  220. device.
  221.       In my case I had to make scd8:
  222.  
  223.             cd /dev
  224.             mknod scd8 b 11 8
  225.  
  226.         Then make links, in my case:
  227.  
  228.             ln -s scd0 cdrom
  229.             ln -s scd8 cdr
  230.  
  231.         Note, many CD-ROM player programs expect the audio CD drive to
  232.         be located at /dev/cdrom (xplaycd, etc.), hence this link is
  233. recommended.
  234.  
  235.         If you try to use /dev/hdc (or wherever your CD or CD-R is)
  236. after loading
  237.         the ide-scsi module, you may not be able to mount CD's or play
  238. audio
  239.         discs -- you have to use the new SCSI names for the device.
  240.  
  241. 8.  Fix your /etc/fstab file to mount the /dev/cdrom and /dev/cdr
  242.  
  243.  
  244. /*--------------------------------------------------------------------------*/
  245. From: Eduard Bloch <edi@gmx.de>
  246.  
  247. Situation:
  248.    Linux: Kernel 2.2.15 (Debian package kernel-image-2.2.15)
  249.    Distribution: Debian Potato (deep freeze), i386
  250.    Devices: one CDRW-Writer, one CDROM-drive, both ATAPI
  251.  
  252. 1. Become root, try "grep hd.: /var/log/kern.log" to find out where your
  253.    ATAPI-devices are connected to (hd?-names).
  254. 2. Edit your boot configuration file, eg. /etc/lilo.conf if you use
  255.    lilo or the batch-file if you boot via loadlin.
  256. 3. Find a line where you can append additional kernel parameters, eg.
  257.    "append=" in lilo.conf or the loadlin-line in the batch file.
  258. 4. Append sth. like this: "hdb=ide-scsi hdc=ide-scsi max_scsi_luns=1"
  259.    The hdX-parameters defines devices that should be mapped to SCSI
  260.    latter. You may do it with non-writers too, since the emulation layer
  261.    is almost complete, or let them out so the devices will use their
  262.    native drivers.
  263. 5. Save the file, reinstall the bootloader (ie. running "/sbin/lilo")
  264. 6. Call "modconf", load "sg" and "ide-scsi" from the SCSI-section
  265. 7. Reboot Debian, watch while booting, you should see a line like this
  266.    "Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0".
  267.    Your old ATAPI devices virtually don't exist any longer, use ther
  268.    SCSI equivalents instead.
  269. 8. Become root, setup devices:
  270.       cd /dev
  271.       MAKEDEV sg scd
  272.       ln -s scd0 cdrom # NOTE: or cdrw, first check which drive is here
  273.       ln -s scd1 cdrw  # NOTE: see above, maybe cdrom
  274.    Check the new SCSI settings:
  275.       cdrecord -scanbus
  276.    Setup cdrecord's environment - edit /etc/default/cdrecord:
  277.       CDR_DEVICE=cdrw
  278.       cdrw=1,0,0        4       8m
  279.       cdrom=1,2,0       0       0m
  280.    Input the right values, the fields are described in the manpage
  281.    of cdrecord. Alternatively, you may use this values as
  282.    cdrecord-parameter or take a frontend with an own configuration
  283.    scheme, then you don't need to modify /etc/default/cdrecord.
  284. 9. It's done! Insert a CD and try "cdrecord -v -toc"
  285.